	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hsu_pci_probe
_hsu_pci_probe:                         ## @hsu_pci_probe
	.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, %r15
	callq	_pcim_enable_device
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.1:
	xorl	%edi, %edi
	callq	_BIT
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_pci_name
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_pcim_iomap_regions
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_13
LBB0_3:
	movq	%r15, %rdi
	callq	_pci_set_master
	movq	%r15, %rdi
	callq	_pci_try_set_mwi
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_pci_set_dma_mask
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.4:
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_pci_set_consistent_dma_mask
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
LBB0_13:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r14
	movq	_PCI_IRQ_ALL_TYPES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_pci_alloc_irq_vectors
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movq	%r15, 16(%r14)
	movq	%r15, %rdi
	callq	_pcim_iomap_table
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_len
	movl	%eax, 8(%r14)
	movq	_HSU_PCI_CHAN_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pci_irq_vector
	movl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_hsu_dma_probe
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	movl	(%r14), %edi
	movq	_hsu_pci_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	movq	%r14, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_hsu_dma_remove
	movl	%r12d, %ebx
	jmp	LBB0_13
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_8:
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_11:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_pci_set_drvdata
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I/O memory remapping failed\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PCI_IRQ_ALL_TYPES,4,2          ## @PCI_IRQ_ALL_TYPES
	.comm	_HSU_PCI_CHAN_OFFSET,4,2        ## @HSU_PCI_CHAN_OFFSET
	.comm	_hsu_pci_irq,4,2                ## @hsu_pci_irq
L_.str.1:                               ## @.str.1
	.asciz	"hsu_dma_pci"

	.no_dead_strip	_hsu_pci_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hsu_pci_probe
_hsu_pci_probe:                         ; @hsu_pci_probe
	.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
	bl	_pcim_enable_device
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.1:
	bl	_BIT
	mov	x20, x0
	mov	x0, x19
	bl	_pci_name
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_pcim_iomap_regions
	cbz	w0, LBB0_3
; %bb.2:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	bl	_pci_set_master
	mov	x0, x19
	bl	_pci_try_set_mwi
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_pci_set_dma_mask
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.4:
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_pci_set_consistent_dma_mask
	mov	x21, x0
	cbz	w0, LBB0_6
LBB0_5:
	mov	x0, x21
	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
LBB0_6:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_11
; %bb.7:
	mov	x20, x0
Lloh5:
	adrp	x8, _PCI_IRQ_ALL_TYPES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCI_IRQ_ALL_TYPES@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #1
	mov	w2, #1
	bl	_pci_alloc_irq_vectors
	tbnz	w0, #31, LBB0_12
; %bb.8:
	str	x19, [x20, #16]
	mov	x0, x19
	bl	_pcim_iomap_table
	ldr	w8, [x0]
	str	w8, [x20, #12]
	mov	x0, x19
	mov	w1, #0
	bl	_pci_resource_len
Lloh8:
	adrp	x8, _HSU_PCI_CHAN_OFFSET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HSU_PCI_CHAN_OFFSET@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	stp	w8, w0, [x20, #4]
	mov	x0, x19
	mov	w1, #0
	bl	_pci_irq_vector
	str	w0, [x20]
	mov	x0, x20
	bl	_hsu_dma_probe
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.9:
	ldr	w0, [x20]
Lloh11:
	adrp	x8, _hsu_pci_irq@GOTPAGE
Lloh12:
	ldr	x8, [x8, _hsu_pci_irq@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x3, l_.str.1@PAGE
Lloh15:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w2, #0
	mov	x4, x20
	bl	_request_irq
	mov	x21, x0
	cbz	w0, LBB0_13
; %bb.10:
	mov	x0, x20
	bl	_hsu_dma_remove
	b	LBB0_5
LBB0_11:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_5
LBB0_12:
	mov	x21, x0
	b	LBB0_5
LBB0_13:
	mov	x0, x19
	mov	x1, x20
	bl	_pci_set_drvdata
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I/O memory remapping failed\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PCI_IRQ_ALL_TYPES,4,2          ; @PCI_IRQ_ALL_TYPES
	.comm	_HSU_PCI_CHAN_OFFSET,4,2        ; @HSU_PCI_CHAN_OFFSET
	.comm	_hsu_pci_irq,4,2                ; @hsu_pci_irq
l_.str.1:                               ; @.str.1
	.asciz	"hsu_dma_pci"

	.no_dead_strip	_hsu_pci_probe
.subsections_via_symbols
