	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5h1432_set_frontend
_s5h1432_set_frontend:                  ## @s5h1432_set_frontend
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r14
	movq	16(%rdi), %rax
	cmpq	(%r14), %rax
	je	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	callq	*(%rdi)
	movl	$300, %edi                      ## imm = 0x12C
	callq	_msleep
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_s5h1432_set_channel_bandwidth
	movl	24(%rbx), %eax
	cmpl	$6000000, %eax                  ## imm = 0x5B8D80
	je	LBB0_2
## %bb.3:
	cmpl	$8000000, %eax                  ## imm = 0x7A1200
	je	LBB0_6
## %bb.4:
	cmpl	$7000000, %eax                  ## imm = 0x6ACFC0
	jne	LBB0_12
## %bb.5:
	movl	$7, %r15d
	jmp	LBB0_7
LBB0_2:
	movl	$6, %r15d
	jmp	LBB0_7
LBB0_6:
	movl	$8, %r15d
LBB0_7:
	movq	_IF_FREQ_4_MHZ@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_s5h1432_set_IF
	movl	$30, %edi
	callq	_msleep
	movq	_S5H1432_I2C_TOP_ADDR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	$9, %edx
	movl	$26, %ecx
	callq	_s5h1432_writereg
	movl	$30, %edi
	callq	_msleep
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	$9, %edx
	movl	$27, %ecx
	callq	_s5h1432_writereg
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_s5h1432_set_channel_bandwidth
	movl	24(%rbx), %eax
	cmpl	$6000000, %eax                  ## imm = 0x5B8D80
	je	LBB0_10
## %bb.8:
	cmpl	$8000000, %eax                  ## imm = 0x7A1200
	je	LBB0_10
## %bb.9:
	cmpl	$7000000, %eax                  ## imm = 0x6ACFC0
	jne	LBB0_12
LBB0_10:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_s5h1432_set_IF
	movl	$30, %edi
	callq	_msleep
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	$9, %edx
	movl	$26, %ecx
	callq	_s5h1432_writereg
	movl	$30, %edi
	callq	_msleep
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	$9, %edx
	movl	$27, %ecx
	callq	_s5h1432_writereg
	movq	16(%rbx), %rax
LBB0_11:
	movq	%rax, (%r14)
LBB0_12:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IF_FREQ_4_MHZ,4,2              ## @IF_FREQ_4_MHZ
	.comm	_S5H1432_I2C_TOP_ADDR,4,2       ## @S5H1432_I2C_TOP_ADDR
	.no_dead_strip	_s5h1432_set_frontend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5h1432_set_frontend
_s5h1432_set_frontend:                  ; @s5h1432_set_frontend
	.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
	ldp	x19, x8, [x0, #8]
	ldr	x9, [x19]
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
	blr	x8
	mov	w0, #300
	bl	_msleep
	mov	x0, x20
	mov	w1, #8
	bl	_s5h1432_set_channel_bandwidth
	ldr	w8, [x20, #24]
	mov	w22, #36224
	movk	w22, #91, lsl #16
	cmp	w8, w22
	b.eq	LBB0_5
; %bb.2:
	mov	w9, #4608
	movk	w9, #122, lsl #16
	cmp	w8, w9
	b.eq	LBB0_6
; %bb.3:
	mov	w9, #53184
	movk	w9, #106, lsl #16
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.4:
	mov	w21, #7
	b	LBB0_7
LBB0_5:
	mov	w21, #6
	b	LBB0_7
LBB0_6:
	mov	w21, #8
LBB0_7:
Lloh0:
	adrp	x24, _IF_FREQ_4_MHZ@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IF_FREQ_4_MHZ@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_s5h1432_set_IF
	mov	w0, #30
	bl	_msleep
Lloh2:
	adrp	x23, _S5H1432_I2C_TOP_ADDR@GOTPAGE
Lloh3:
	ldr	x23, [x23, _S5H1432_I2C_TOP_ADDR@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #9
	mov	w3, #26
	bl	_s5h1432_writereg
	mov	w0, #30
	bl	_msleep
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #9
	mov	w3, #27
	bl	_s5h1432_writereg
	mov	x0, x20
	mov	x1, x21
	bl	_s5h1432_set_channel_bandwidth
	ldr	w8, [x20, #24]
	cmp	w8, w22
	b.eq	LBB0_10
; %bb.8:
	mov	w9, #4608
	movk	w9, #122, lsl #16
	cmp	w8, w9
	b.eq	LBB0_10
; %bb.9:
	mov	w9, #53184
	movk	w9, #106, lsl #16
	cmp	w8, w9
	b.ne	LBB0_12
LBB0_10:
	ldr	w1, [x24]
	mov	x0, x20
	bl	_s5h1432_set_IF
	mov	w0, #30
	bl	_msleep
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #9
	mov	w3, #26
	bl	_s5h1432_writereg
	mov	w0, #30
	bl	_msleep
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #9
	mov	w3, #27
	bl	_s5h1432_writereg
	ldr	x8, [x20, #16]
LBB0_11:
	str	x8, [x19]
LBB0_12:
	mov	w0, #0
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IF_FREQ_4_MHZ,4,2              ; @IF_FREQ_4_MHZ
	.comm	_S5H1432_I2C_TOP_ADDR,4,2       ; @S5H1432_I2C_TOP_ADDR
	.no_dead_strip	_s5h1432_set_frontend
.subsections_via_symbols
