	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function da9052_configure_leds
_da9052_configure_leds:                 ## @da9052_configure_leds
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_DA9052_OPENDRAIN_OUTPUT@GOTPCREL(%rip), %rax
	movq	_DA9052_SET_HIGH_LVL_OUTPUT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	orb	(%rax), %cl
	movzbl	%cl, %r15d
	movq	_DA9052_GPIO_14_15_REG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_DA9052_MASK_LOWER_NIBBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %ecx
	callq	_da9052_reg_update
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	(%r12), %esi
	movq	_DA9052_MASK_UPPER_NIBBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DA9052_NIBBLE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r15d
	movzbl	%r15b, %ecx
	movq	%r14, %rdi
	callq	_da9052_reg_update
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_4
	jmp	LBB0_3
LBB0_1:
	movl	%eax, %ebx
LBB0_3:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DA9052_OPENDRAIN_OUTPUT,1,0    ## @DA9052_OPENDRAIN_OUTPUT
	.comm	_DA9052_SET_HIGH_LVL_OUTPUT,1,0 ## @DA9052_SET_HIGH_LVL_OUTPUT
	.comm	_DA9052_GPIO_14_15_REG,4,2      ## @DA9052_GPIO_14_15_REG
	.comm	_DA9052_MASK_LOWER_NIBBLE,4,2   ## @DA9052_MASK_LOWER_NIBBLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to write GPIO 14-15 reg, %d\n"

	.comm	_DA9052_MASK_UPPER_NIBBLE,4,2   ## @DA9052_MASK_UPPER_NIBBLE
	.comm	_DA9052_NIBBLE_SHIFT,1,0        ## @DA9052_NIBBLE_SHIFT
	.no_dead_strip	_da9052_configure_leds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function da9052_configure_leds
_da9052_configure_leds:                 ; @da9052_configure_leds
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _DA9052_OPENDRAIN_OUTPUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DA9052_OPENDRAIN_OUTPUT@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh2:
	adrp	x9, _DA9052_SET_HIGH_LVL_OUTPUT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DA9052_SET_HIGH_LVL_OUTPUT@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w21, w9, w8
Lloh4:
	adrp	x22, _DA9052_GPIO_14_15_REG@GOTPAGE
Lloh5:
	ldr	x22, [x22, _DA9052_GPIO_14_15_REG@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh6:
	adrp	x8, _DA9052_MASK_LOWER_NIBBLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DA9052_MASK_LOWER_NIBBLE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x3, x21
	bl	_da9052_reg_update
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	w1, [x22]
Lloh9:
	adrp	x8, _DA9052_MASK_UPPER_NIBBLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DA9052_MASK_UPPER_NIBBLE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _DA9052_NIBBLE_SHIFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DA9052_NIBBLE_SHIFT@GOTPAGEOFF]
	ldrb	w8, [x8]
	lsl	w8, w21, w8
	and	w3, w8, #0xff
	mov	x0, x19
	bl	_da9052_reg_update
	mov	x20, x0
	tbz	w0, #31, LBB0_4
	b	LBB0_3
LBB0_2:
	mov	x20, x0
LBB0_3:
	ldr	w0, [x19]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_DA9052_OPENDRAIN_OUTPUT,1,0    ; @DA9052_OPENDRAIN_OUTPUT
	.comm	_DA9052_SET_HIGH_LVL_OUTPUT,1,0 ; @DA9052_SET_HIGH_LVL_OUTPUT
	.comm	_DA9052_GPIO_14_15_REG,4,2      ; @DA9052_GPIO_14_15_REG
	.comm	_DA9052_MASK_LOWER_NIBBLE,4,2   ; @DA9052_MASK_LOWER_NIBBLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to write GPIO 14-15 reg, %d\n"

	.comm	_DA9052_MASK_UPPER_NIBBLE,4,2   ; @DA9052_MASK_UPPER_NIBBLE
	.comm	_DA9052_NIBBLE_SHIFT,1,0        ; @DA9052_NIBBLE_SHIFT
	.no_dead_strip	_da9052_configure_leds
.subsections_via_symbols
