	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adc_attach
_adc_attach:                            ## @adc_attach
	.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
	movl	%edi, %ebx
	callq	_device_get_softc
	movq	%rax, %r15
	movq	_adc_spec@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r15), %rdx
	movl	%ebx, %edi
	callq	_bus_alloc_resources
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_rman_get_bustag
	movl	%eax, 20(%r15)
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_rman_get_bushandle
	movl	%eax, 16(%r15)
	movq	_adc_sc@GOTPCREL(%rip), %rax
	movq	%r15, (%rax)
	movq	8(%r15), %rax
	movl	4(%rax), %esi
	movq	_INTR_TYPE_BIO@GOTPCREL(%rip), %rax
	movq	_INTR_MPSAFE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_adc_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, (%rsp)
	xorl	%r14d, %r14d
	movl	%ebx, %edi
	xorl	%ecx, %ecx
	movq	%r15, %r9
	callq	_bus_setup_intr
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movl	%ebx, %edi
	callq	_device_printf
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ADC_CFG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_READ4
	movq	_CFG_MODE_M@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_CFG_MODE_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	movq	_CFG_MODE_12@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	shll	%cl, %edx
	notl	%esi
	andl	%eax, %esi
	orl	%esi, %edx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_WRITE4
	movq	_ADC_GC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_READ4
	movq	_GC_ADCO@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_GC_AVGE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_WRITE4
	movq	_ADC_HC0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_READ4
	movq	_HC_AIEN@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_WRITE4
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_adc_spec,4,2                   ## @adc_spec
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not allocate resources\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_adc_sc,8,3                     ## @adc_sc
	.comm	_INTR_TYPE_BIO,4,2              ## @INTR_TYPE_BIO
	.comm	_INTR_MPSAFE,4,2                ## @INTR_MPSAFE
	.comm	_adc_intr,4,2                   ## @adc_intr
L_.str.1:                               ## @.str.1
	.asciz	"Unable to alloc interrupt resource.\n"

	.comm	_ADC_CFG,4,2                    ## @ADC_CFG
	.comm	_CFG_MODE_M,4,2                 ## @CFG_MODE_M
	.comm	_CFG_MODE_S,4,2                 ## @CFG_MODE_S
	.comm	_CFG_MODE_12,4,2                ## @CFG_MODE_12
	.comm	_ADC_GC,4,2                     ## @ADC_GC
	.comm	_GC_ADCO,4,2                    ## @GC_ADCO
	.comm	_GC_AVGE,4,2                    ## @GC_AVGE
	.comm	_ADC_HC0,4,2                    ## @ADC_HC0
	.comm	_HC_AIEN,4,2                    ## @HC_AIEN
	.no_dead_strip	_adc_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adc_attach
_adc_attach:                            ; @adc_attach
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_device_get_softc
	mov	x19, x0
Lloh0:
	adrp	x8, _adc_spec@GOTPAGE
Lloh1:
	ldr	x8, [x8, _adc_spec@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x2, [x0, #8]
	mov	x0, x20
	bl	_bus_alloc_resources
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_rman_get_bustag
	str	w0, [x19, #20]
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_rman_get_bushandle
	str	w0, [x19, #16]
Lloh5:
	adrp	x8, _adc_sc@GOTPAGE
Lloh6:
	ldr	x8, [x8, _adc_sc@GOTPAGEOFF]
Lloh7:
	str	x19, [x8]
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #4]
Lloh8:
	adrp	x8, _INTR_TYPE_BIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INTR_TYPE_BIO@GOTPAGEOFF]
Lloh10:
	adrp	x9, _INTR_MPSAFE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _INTR_MPSAFE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh14:
	adrp	x8, _adc_intr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _adc_intr@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x3, #0
	mov	x5, x19
	mov	x6, x19
	bl	_bus_setup_intr
	cbz	w0, LBB0_6
; %bb.3:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x20
	bl	_device_printf
Lloh19:
	adrp	x8, _ENXIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh22:
	adrp	x20, _ADC_CFG@GOTPAGE
Lloh23:
	ldr	x20, [x20, _ADC_CFG@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_READ4
Lloh24:
	adrp	x8, _CFG_MODE_M@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CFG_MODE_M@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _CFG_MODE_S@GOTPAGE
Lloh28:
	ldr	x9, [x9, _CFG_MODE_S@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	bic	w8, w0, w8
Lloh30:
	adrp	x10, _CFG_MODE_12@GOTPAGE
Lloh31:
	ldr	x10, [x10, _CFG_MODE_12@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	lsl	w9, w10, w9
	orr	w2, w8, w9
	ldr	w1, [x20]
	mov	x0, x19
	bl	_WRITE4
Lloh33:
	adrp	x20, _ADC_GC@GOTPAGE
Lloh34:
	ldr	x20, [x20, _ADC_GC@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_READ4
Lloh35:
	adrp	x8, _GC_ADCO@GOTPAGE
Lloh36:
	ldr	x8, [x8, _GC_ADCO@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	adrp	x9, _GC_AVGE@GOTPAGE
Lloh39:
	ldr	x9, [x9, _GC_AVGE@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w2, w8, w9
	ldr	w1, [x20]
	mov	x0, x19
	bl	_WRITE4
Lloh41:
	adrp	x20, _ADC_HC0@GOTPAGE
Lloh42:
	ldr	x20, [x20, _ADC_HC0@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_READ4
Lloh43:
	adrp	x8, _HC_AIEN@GOTPAGE
Lloh44:
	ldr	x8, [x8, _HC_AIEN@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	and	w2, w8, w0
	ldr	w1, [x20]
	mov	x0, x19
	bl	_WRITE4
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_adc_spec,4,2                   ; @adc_spec
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not allocate resources\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_adc_sc,8,3                     ; @adc_sc
	.comm	_INTR_TYPE_BIO,4,2              ; @INTR_TYPE_BIO
	.comm	_INTR_MPSAFE,4,2                ; @INTR_MPSAFE
	.comm	_adc_intr,4,2                   ; @adc_intr
l_.str.1:                               ; @.str.1
	.asciz	"Unable to alloc interrupt resource.\n"

	.comm	_ADC_CFG,4,2                    ; @ADC_CFG
	.comm	_CFG_MODE_M,4,2                 ; @CFG_MODE_M
	.comm	_CFG_MODE_S,4,2                 ; @CFG_MODE_S
	.comm	_CFG_MODE_12,4,2                ; @CFG_MODE_12
	.comm	_ADC_GC,4,2                     ; @ADC_GC
	.comm	_GC_ADCO,4,2                    ; @GC_ADCO
	.comm	_GC_AVGE,4,2                    ; @GC_AVGE
	.comm	_ADC_HC0,4,2                    ; @ADC_HC0
	.comm	_HC_AIEN,4,2                    ; @HC_AIEN
	.no_dead_strip	_adc_attach
.subsections_via_symbols
