	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function au8522_led_gpio_enable
_au8522_led_gpio_enable:                ## @au8522_led_gpio_enable
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	movl	%esi, %r14d
	movl	(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_4
## %bb.2:
	cmpl	$0, 4(%rbx)
	je	LBB0_4
## %bb.3:
	cmpl	$0, 8(%rbx)
	je	LBB0_4
## %bb.5:
	movq	%rdi, %r15
	andl	$-49153, %esi                   ## imm = 0xFFFF3FFF
	orl	$16384, %esi                    ## imm = 0x4000
	callq	_au8522_readreg
	xorl	%ecx, %ecx
	testl	%r14d, %r14d
	sete	%cl
	movl	4(%rbx,%rcx,4), %ecx
	movzbl	%cl, %edx
	shrl	$8, %ecx
	notl	%ecx
	orl	$-256, %ecx
	andl	%eax, %ecx
	orl	%ecx, %edx
	movl	$-49153, %esi                   ## imm = 0xFFFF3FFF
	andl	(%rbx), %esi
	orl	$32768, %esi                    ## imm = 0x8000
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_au8522_writereg                ## TAILCALL
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_au8522_led_gpio_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function au8522_led_gpio_enable
_au8522_led_gpio_enable:                ; @au8522_led_gpio_enable
	.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
	ldr	x21, [x0]
	cbz	x21, LBB0_5
; %bb.1:
	ldr	w8, [x21]
	cbz	w8, LBB0_5
; %bb.2:
	ldr	w9, [x21, #4]
	cbz	w9, LBB0_5
; %bb.3:
	ldr	w9, [x21, #8]
	cbz	w9, LBB0_5
; %bb.4:
	mov	x20, x1
	mov	x19, x0
	and	w8, w8, #0xffff3fff
	orr	w1, w8, #0x4000
	bl	_au8522_readreg
	cmp	w20, #0
	mov	w8, #4
	mov	w9, #8
	csel	x8, x9, x8, eq
	ldr	w8, [x21, x8]
	mov	w9, #-256
	orn	w9, w9, w8, lsr #8
	and	w9, w0, w9
	and	w8, w8, #0xff
	orr	w2, w9, w8
	ldr	w8, [x21]
	and	w8, w8, #0xffff3fff
	orr	w1, w8, #0x8000
	mov	x0, x19
	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
	b	_au8522_writereg
LBB0_5:
	mov	w0, #0
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_au8522_led_gpio_enable
.subsections_via_symbols
