	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mhz_setup
_mhz_setup:                             ## @mhz_setup
	.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	%rdi, %r12
	movq	(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$64, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	32(%rax), %r14
	movq	%rax, %r13
	addq	$8, %r13
	movq	(%rax), %r15
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%rax)
	movq	%r15, 40(%rax)
	movl	$255, 32(%rax)
	movq	_CISTPL_VERS_1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_first_tuple
	testq	%rax, %rax
	jne	LBB0_2
## %bb.4:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_next_tuple
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_first_tuple
LBB0_6:
	cmpl	$4, (%r13)
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jl	LBB0_8
## %bb.7:
	movq	24(%rbx), %rax
	movslq	12(%rax), %rsi
	addq	16(%rbx), %rsi
	movq	%r13, %rdi
	callq	_cvt_ascii_address
	testq	%rax, %rax
	je	LBB0_12
LBB0_8:
	movl	$129, 36(%rbx)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_pcmcia_get_first_tuple
	testq	%rax, %rax
	je	LBB0_10
LBB0_2:
	movl	$-1, %r14d
LBB0_13:
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_14
LBB0_3:
	movl	$-1, %r14d
LBB0_14:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_pcmcia_get_tuple_data
	testq	%rax, %rax
	movl	$-1, %r14d
	jne	LBB0_13
## %bb.11:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movb	$0, 12(%rsi)
	movq	%r13, %rdi
	callq	_cvt_ascii_address
	xorl	%r14d, %r14d
	negq	%rax
	sbbl	%r14d, %r14d
	jmp	LBB0_13
LBB0_12:
	xorl	%r14d, %r14d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_CISTPL_VERS_1,4,2              ## @CISTPL_VERS_1
	.no_dead_strip	_mhz_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mhz_setup
_mhz_setup:                             ; @mhz_setup
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #64
	bl	_kmalloc
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
	mov	w8, #255
	mov	x23, x0
	str	w8, [x23, #32]!
	add	x24, x0, #8
	ldr	x22, [x0]
	stp	xzr, xzr, [x0, #48]
	str	x22, [x0, #40]
Lloh3:
	adrp	x8, _CISTPL_VERS_1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CISTPL_VERS_1@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #36]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x24
	bl	_first_tuple
	cbnz	x0, LBB0_8
; %bb.2:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x24
	bl	_next_tuple
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x24
	bl	_first_tuple
LBB0_4:
	ldr	w8, [x24]
	cmp	w8, #4
	b.lt	LBB0_6
; %bb.5:
	ldp	x8, x9, [x19, #16]
	ldrsw	x9, [x9, #12]
	add	x1, x8, x9
	mov	x0, x20
	bl	_cvt_ascii_address
	cbz	x0, LBB0_12
LBB0_6:
	mov	w8, #129
	str	w8, [x19, #36]
	mov	x0, x21
	mov	x1, x23
	bl	_pcmcia_get_first_tuple
	cbnz	x0, LBB0_8
; %bb.7:
	mov	x0, x21
	mov	x1, x23
	bl	_pcmcia_get_tuple_data
	cbz	x0, LBB0_13
LBB0_8:
	mov	w20, #-1
LBB0_9:
	mov	x0, x19
	bl	_kfree
	b	LBB0_11
LBB0_10:
	mov	w20, #-1
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	w20, #0
	b	LBB0_9
LBB0_13:
	strb	wzr, [x22, #12]
	mov	x0, x20
	mov	x1, x22
	bl	_cvt_ascii_address
	cmp	x0, #0
	csetm	w20, ne
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_CISTPL_VERS_1,4,2              ; @CISTPL_VERS_1
	.no_dead_strip	_mhz_setup
.subsections_via_symbols
