	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_mute_led_cfg
_find_mute_led_cfg:                     ## @find_mute_led_cfg
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	8(%rdi), %r12
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	callq	_get_int_hint
	leaq	4(%r12), %rbx
	testq	%rax, %rax
	je	LBB0_1
## %bb.16:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_get_int_hint
LBB0_14:
	movl	$1, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	_DMI_DEV_TYPE_OEM_STRING@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_dmi_find_device
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r14
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$2, %eax
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$1, %eax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_2
## %bb.10:
	movq	%r15, %rdi
	callq	_set_hp_led_gpio
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	movl	$1, %eax
	cmovsl	%eax, %ecx
	movl	%ecx, (%rbx)
	jmp	LBB0_15
LBB0_11:
	movl	(%r15), %edi
	callq	_hp_blike_system
	movl	%eax, %ecx
	xorl	%eax, %eax
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	cmpl	$1, %r14d
	ja	LBB0_15
## %bb.12:
	testl	%ecx, %ecx
	jne	LBB0_15
## %bb.13:
	movq	%r15, %rdi
	callq	_set_hp_led_gpio
	movl	%r14d, (%rbx)
	jmp	LBB0_14
LBB0_4:
	movl	4(%r15), %esi
	movq	_AC_PAR_GPIO_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_snd_hda_param_read
	movq	_AC_GPIO_IO_COUNT@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	(%r12), %ecx
	cmpl	%eax, %ecx
	jae	LBB0_6
## %bb.5:
	movl	$1, %eax
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	movl	%edx, (%r12)
	jmp	LBB0_15
LBB0_8:
	movq	%r15, %rdi
	callq	_set_hp_led_gpio
	jmp	LBB0_14
LBB0_6:
	movl	%ecx, 8(%r12)
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gpio_led"

L_.str.1:                               ## @.str.1
	.asciz	"gpio_led_polarity"

	.comm	_DMI_DEV_TYPE_OEM_STRING,4,2    ## @DMI_DEV_TYPE_OEM_STRING
L_.str.2:                               ## @.str.2
	.asciz	"HP_Mute_LED_%d_%x"

	.comm	_AC_PAR_GPIO_CAP,4,2            ## @AC_PAR_GPIO_CAP
	.comm	_AC_GPIO_IO_COUNT,4,2           ## @AC_GPIO_IO_COUNT
L_.str.3:                               ## @.str.3
	.asciz	"HP_Mute_LED_%d"

L_.str.4:                               ## @.str.4
	.asciz	"HP_Mute_LED_P_G"

	.no_dead_strip	_find_mute_led_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_mute_led_cfg
_find_mute_led_cfg:                     ; @find_mute_led_cfg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_get_int_hint
	add	x21, x22, #4
	cbz	x0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_get_int_hint
LBB0_2:
	mov	w0, #1
LBB0_3:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	mov	x23, #0
Lloh4:
	adrp	x27, _DMI_DEV_TYPE_OEM_STRING@GOTPAGE
Lloh5:
	ldr	x27, [x27, _DMI_DEV_TYPE_OEM_STRING@GOTPAGEOFF]
Lloh6:
	adrp	x24, l_.str.2@PAGE
Lloh7:
	add	x24, x24, l_.str.2@PAGEOFF
Lloh8:
	adrp	x25, l_.str.3@PAGE
Lloh9:
	add	x25, x25, l_.str.3@PAGEOFF
Lloh10:
	adrp	x26, l_.str.4@PAGE
Lloh11:
	add	x26, x26, l_.str.4@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x27]
	mov	x1, #0
	mov	x2, x23
	bl	_dmi_find_device
	cbz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x23, x0
	ldr	w0, [x0]
	str	x22, [sp]
	mov	x1, x24
	mov	x2, x21
	bl	_sscanf
	cmp	w0, #2
	b.eq	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x23]
	mov	x1, x25
	mov	x2, x21
	bl	_sscanf
	cmp	w0, #1
	b.eq	LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x23]
	mov	x1, x26
	bl	_strstr
	cbz	x0, LBB0_5
; %bb.9:
	mov	x0, x19
	bl	_set_hp_led_gpio
	cmp	w20, #0
	csinc	w8, w20, wzr, ge
	str	w8, [x21]
	b	LBB0_2
LBB0_10:
	ldr	w0, [x19]
	bl	_hp_blike_system
	mov	x8, x0
	mov	w0, #0
	cmp	w20, #1
	b.hi	LBB0_3
; %bb.11:
	cbnz	w8, LBB0_3
; %bb.12:
	mov	x0, x19
	bl	_set_hp_led_gpio
	str	w20, [x21]
	b	LBB0_2
LBB0_13:
	ldr	w1, [x19, #4]
Lloh12:
	adrp	x8, _AC_PAR_GPIO_CAP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AC_PAR_GPIO_CAP@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_snd_hda_param_read
Lloh15:
	adrp	x8, _AC_GPIO_IO_COUNT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AC_GPIO_IO_COUNT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	and	w9, w8, w0
	ldr	w8, [x22]
	cmp	w8, w9
	b.hs	LBB0_16
; %bb.14:
	mov	w0, #1
	lsl	w8, w0, w8
	str	w8, [x22]
	b	LBB0_3
LBB0_15:
	mov	x0, x19
	bl	_set_hp_led_gpio
	b	LBB0_2
LBB0_16:
	str	w8, [x22, #8]
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gpio_led"

l_.str.1:                               ; @.str.1
	.asciz	"gpio_led_polarity"

	.comm	_DMI_DEV_TYPE_OEM_STRING,4,2    ; @DMI_DEV_TYPE_OEM_STRING
l_.str.2:                               ; @.str.2
	.asciz	"HP_Mute_LED_%d_%x"

	.comm	_AC_PAR_GPIO_CAP,4,2            ; @AC_PAR_GPIO_CAP
	.comm	_AC_GPIO_IO_COUNT,4,2           ; @AC_GPIO_IO_COUNT
l_.str.3:                               ; @.str.3
	.asciz	"HP_Mute_LED_%d"

l_.str.4:                               ; @.str.4
	.asciz	"HP_Mute_LED_P_G"

	.no_dead_strip	_find_mute_led_cfg
.subsections_via_symbols
