	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_init_ah_from_wc             ## -- Begin function ib_init_ah_from_wc
	.p2align	4, 0x90
_ib_init_ah_from_wc:                    ## @ib_init_ah_from_wc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)
	xorl	%r12d, %r12d
	movq	%r8, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movl	12(%rbx), %eax
	movl	%eax, 56(%r13)
	movl	8(%rbx), %eax
	movl	%eax, 52(%r13)
	movl	4(%rbx), %eax
	movl	%eax, 48(%r13)
	movq	%r15, 40(%r13)
	movq	_IB_WC_GRH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.1:
	movq	_IB_AH_GRH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r13)
	movl	8(%r14), %eax
	movl	%eax, 24(%r13)
	leaq	4(%r14), %rsi
	leaq	-64(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ib_find_cached_gid
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	-56(%rbp), %rax
	movq	%rax, 16(%r13)
	movl	(%r14), %edi
	callq	_be32_to_cpu
	movl	%eax, %ecx
	andl	$1048575, %ecx                  ## imm = 0xFFFFF
	movl	%ecx, (%r13)
	movl	$255, 4(%r13)
	shrl	$20, %eax
	movzbl	%al, %eax
	movl	%eax, 8(%r13)
	xorl	%r12d, %r12d
LBB0_3:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_WC_GRH,4,2                  ## @IB_WC_GRH
	.comm	_IB_AH_GRH,4,2                  ## @IB_AH_GRH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_init_ah_from_wc             ; -- Begin function ib_init_ah_from_wc
	.p2align	2
_ib_init_ah_from_wc:                    ; @ib_init_ah_from_wc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x4
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
	str	x1, [sp, #8]
	mov	x0, x4
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	ldr	w8, [x22, #12]
	str	w8, [x19, #56]
	ldur	d0, [x22, #4]
	str	d0, [x19, #48]
	str	x23, [x19, #40]
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _IB_WC_GRH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_WC_GRH@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _IB_AH_GRH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_AH_GRH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	ldr	w8, [x20, #8]
	str	w8, [x19, #24]
	add	x1, x20, #4
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x21
	bl	_ib_find_cached_gid
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	x8, [sp]
	str	x8, [x19, #16]
	ldr	w0, [x20]
	bl	_be32_to_cpu
	mov	x8, x0
	mov	w0, #0
	and	w9, w8, #0xfffff
	mov	w10, #255
	stp	w9, w10, [x19]
	ubfx	w8, w8, #20, #8
	str	w8, [x19, #8]
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_WC_GRH,4,2                  ; @IB_WC_GRH
	.comm	_IB_AH_GRH,4,2                  ; @IB_AH_GRH
.subsections_via_symbols
