	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sx150x_init_misc
_sx150x_init_misc:                      ## @sx150x_init_misc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rax
	movl	(%rax), %edx
	cmpl	$130, %edx
	je	LBB0_5
## %bb.1:
	cmpl	$129, %edx
	je	LBB0_7
## %bb.2:
	cmpl	$128, %edx
	jne	LBB0_4
## %bb.3:
	movl	12(%rax), %esi
	movq	_SX150X_789_REG_MISC_AUTOCLEAR_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_6
LBB0_5:
	movl	4(%rax), %esi
	xorl	%edx, %edx
	jmp	LBB0_6
LBB0_7:
	movl	8(%rax), %esi
	xorl	%edx, %edx
	testl	%esi, %esi
	je	LBB0_8
LBB0_6:
	movl	(%rdi), %edi
	popq	%rbp
	jmp	_regmap_write                   ## TAILCALL
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_WARN
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	subl	(%rax), %edx
LBB0_8:
	movl	%edx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SX150X_789_REG_MISC_AUTOCLEAR_OFF,4,2 ## @SX150X_789_REG_MISC_AUTOCLEAR_OFF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown chip model %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_sx150x_init_misc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sx150x_init_misc
_sx150x_init_misc:                      ; @sx150x_init_misc
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x9, [x0, #8]
	ldr	w2, [x9]
	cmp	w2, #130
	b.eq	LBB0_4
; %bb.1:
	cmp	w2, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w2, #128
	b.ne	LBB0_7
; %bb.3:
	ldr	w1, [x9, #12]
Lloh0:
	adrp	x8, _SX150X_789_REG_MISC_AUTOCLEAR_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SX150X_789_REG_MISC_AUTOCLEAR_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	b	LBB0_6
LBB0_4:
	mov	w2, #0
	ldr	w1, [x9, #4]
	b	LBB0_6
LBB0_5:
	mov	w2, #0
	mov	w8, #0
	ldr	w1, [x9, #8]
	cbz	w1, LBB0_8
LBB0_6:
	ldr	w0, [x0]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_regmap_write
LBB0_7:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w8, w8
LBB0_8:
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SX150X_789_REG_MISC_AUTOCLEAR_OFF,4,2 ; @SX150X_789_REG_MISC_AUTOCLEAR_OFF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown chip model %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_sx150x_init_misc
.subsections_via_symbols
