	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad1848_set_bits
_ad1848_set_bits:                       ## @ad1848_set_bits
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_audio_devs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%edi, %rdx
	movq	(%rcx,%rdx,8), %rdx
	movq	(%rdx), %rcx
	testl	%esi, %esi
	je	LBB0_4
## %bb.1:
	movl	%esi, %eax
	movq	8(%rdx), %rdx
	movq	_ad_format_mask@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	(%rdx), %rdx
	movl	(%rsi,%rdx,4), %edx
	andl	%eax, %edx
	movl	$128, %edx
	cmovel	%edx, %eax
	movl	%eax, (%rcx)
	leal	-128(%rax), %edx
	cmpl	$9, %edx
	jae	LBB0_5
## %bb.2:
	movslq	%edx, %rdx
	leaq	l_switch.table.ad1848_set_bits(%rip), %rsi
	movq	(%rsi,%rdx,8), %rdi
	leaq	_ad1848_set_bits.format2bits(%rip), %rsi
	movb	4(%rsi,%rdi,8), %dl
	movb	%dl, 4(%rcx)
	movl	$913, %edx                      ## imm = 0x391
	btq	%rdi, %rdx
	jb	LBB0_6
## %bb.3:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_4:
	movl	(%rcx), %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_5:
	movb	$0, 4(%rcx)
LBB0_6:
	movl	$128, (%rcx)
	movl	$128, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_audio_devs,8,3                 ## @audio_devs
	.section	__TEXT,__const
	.p2align	4                               ## @ad1848_set_bits.format2bits
_ad1848_set_bits.format2bits:
	.space	8
	.long	134                             ## 0x86
	.byte	1                               ## 0x1
	.space	3
	.long	136                             ## 0x88
	.byte	3                               ## 0x3
	.space	3
	.long	135                             ## 0x87
	.byte	5                               ## 0x5
	.space	3
	.long	128                             ## 0x80
	.byte	0                               ## 0x0
	.space	3
	.long	132                             ## 0x84
	.byte	2                               ## 0x2
	.space	3
	.long	133                             ## 0x85
	.byte	6                               ## 0x6
	.space	3
	.long	131                             ## 0x83
	.byte	0                               ## 0x0
	.space	3
	.long	129                             ## 0x81
	.byte	0                               ## 0x0
	.space	3
	.long	130                             ## 0x82
	.byte	0                               ## 0x0
	.space	3

	.comm	_ad_format_mask,8,3             ## @ad_format_mask
	.no_dead_strip	_ad1848_set_bits
	.p2align	3                               ## @switch.table.ad1848_set_bits
l_switch.table.ad1848_set_bits:
	.quad	4                               ## 0x4
	.quad	8                               ## 0x8
	.quad	9                               ## 0x9
	.quad	7                               ## 0x7
	.quad	5                               ## 0x5
	.quad	6                               ## 0x6
	.quad	1                               ## 0x1
	.quad	3                               ## 0x3
	.quad	2                               ## 0x2

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad1848_set_bits
_ad1848_set_bits:                       ; @ad1848_set_bits
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _audio_devs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _audio_devs@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x8, w0, sxtw #3]
	ldr	x8, [x9]
	cbz	w1, LBB0_4
; %bb.1:
	ldr	x9, [x9, #8]
Lloh3:
	adrp	x10, _ad_format_mask@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ad_format_mask@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldr	x9, [x9]
	ldr	w9, [x10, x9, lsl #2]
	tst	w9, w1
	mov	w9, #128
	csel	w0, w9, w1, eq
	str	w0, [x8]
	sub	w10, w0, #128
	cmp	w10, #9
	b.hs	LBB0_5
; %bb.2:
Lloh6:
	adrp	x9, l_switch.table.ad1848_set_bits@PAGE
Lloh7:
	add	x9, x9, l_switch.table.ad1848_set_bits@PAGEOFF
	ldr	x9, [x9, w10, sxtw #3]
Lloh8:
	adrp	x10, _ad1848_set_bits.format2bits@PAGE
Lloh9:
	add	x10, x10, _ad1848_set_bits.format2bits@PAGEOFF
	add	x10, x10, x9, lsl #3
	ldrb	w10, [x10, #4]
	strb	w10, [x8, #4]
	mov	w10, #913
	lsr	x9, x10, x9
	tbz	w9, #0, LBB0_6
; %bb.3:
	mov	w0, #128
	str	w0, [x8]
	ret
LBB0_4:
	ldr	w0, [x8]
	ret
LBB0_5:
	strb	wzr, [x8, #4]
	str	w9, [x8]
	mov	w0, #128
LBB0_6:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_audio_devs,8,3                 ; @audio_devs
	.section	__TEXT,__const
	.p2align	2                               ; @ad1848_set_bits.format2bits
_ad1848_set_bits.format2bits:
	.space	8
	.long	134                             ; 0x86
	.byte	1                               ; 0x1
	.space	3
	.long	136                             ; 0x88
	.byte	3                               ; 0x3
	.space	3
	.long	135                             ; 0x87
	.byte	5                               ; 0x5
	.space	3
	.long	128                             ; 0x80
	.byte	0                               ; 0x0
	.space	3
	.long	132                             ; 0x84
	.byte	2                               ; 0x2
	.space	3
	.long	133                             ; 0x85
	.byte	6                               ; 0x6
	.space	3
	.long	131                             ; 0x83
	.byte	0                               ; 0x0
	.space	3
	.long	129                             ; 0x81
	.byte	0                               ; 0x0
	.space	3
	.long	130                             ; 0x82
	.byte	0                               ; 0x0
	.space	3

	.comm	_ad_format_mask,8,3             ; @ad_format_mask
	.no_dead_strip	_ad1848_set_bits
	.p2align	3                               ; @switch.table.ad1848_set_bits
l_switch.table.ad1848_set_bits:
	.quad	4                               ; 0x4
	.quad	8                               ; 0x8
	.quad	9                               ; 0x9
	.quad	7                               ; 0x7
	.quad	5                               ; 0x5
	.quad	6                               ; 0x6
	.quad	1                               ; 0x1
	.quad	3                               ; 0x3
	.quad	2                               ; 0x2

.subsections_via_symbols
